import ROBOT_AVATAR from '@/assets/image/avatar_robo.png';
import React from 'react';
import { history } from 'umi';
const FloatDialog: React.FC = () => {
  const goBrainSpaceInfo = () => {
    history.push(`/spaceHome`);
  };

  return (
    <div className="avatarButtonWrap">
      <div className="avatarButtonAvatar" onClick={goBrainSpaceInfo}>
        <img className="problem-avatar" src={ROBOT_AVATAR} alt="" height={60} width={60} />
        <span className="avatarButtonInfo">AI大脑空间</span>
      </div>
    </div>
  );
};
export default FloatDialog;
